function Cache() {

	this.itemsCache = {};

	this.cleanCache = function() {
		this.itemsCache = {};
	};

	this.cache = function(item) {
		this.itemsCache[item.id] = item;
	};

	this.find = function(id) {
		if(id in this.itemsCache) {
			return this.itemsCache[id];
		}
		return null;
	};

	this.resolve = function(id, property) {
		var item = this.find(id);
		if(item != null) {
			return item[property];
		}
		return null;
	};
};